package com.cty.pojo;

import org.apache.log4j.Logger;

/**
 * @Auther: cty
 * @Date: 2020/3/7 17:15
 * @Description:  测试类（切点所在类）
 * @version: 1.0
 */
public class Demo {
    // 获取日志对象
    Logger log = Logger.getLogger(Demo.class);

    public void demo1(){
        log.debug("demo1");
    }

    public void demo2(String name1){
//        int a = 5/0;  // / by zero 异常
        log.debug("demo2 "+name1);
    }

    public void demo3(String name1, int age1){
        log.debug("demo3 "+name1+" "+age1);
    }
}
